package com.skyable.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.skyable.account.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author GaoYuan
 * @title: Permission
 * @projectName spring-cloud-oauth2-demo
 * @description: TODO
 * @date 2021/4/129:12
 */
@Data
@TableName("sys_permission")
public class SysPermission extends BaseEntity {

    @ApiModelProperty(value = "ID")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 权限名称
     */
    @ApiModelProperty(value = "资源权限名称")
    private String permissionName;
    /**
     * 权限编码
     */
    @ApiModelProperty(value = "资源权限编码")
    private String permissionCode;
    /**
     * 授权路径
     */
    @ApiModelProperty(value = "请求路径")
    private String url;

    /**
     * 父权限
     */
    @ApiModelProperty(hidden = true)
    private Long parentId;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "序号")
    private Integer orderNum;

    /**
     * 类型:0目录,1菜单,2按钮
     */
    @ApiModelProperty(value = "类型：0目录,1菜单,2按钮")
    private Integer menuType;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

}
